
import twitter4j.Twitter;
import twitter4j.TwitterException;

public class TwitterDesignUpdate {
	public static void changeTwitterTheme(Twitter twitter, Theme theme)
			throws TwitterException {
		twitter.updateProfileColors(theme.getBackgroundColor(),
				theme.getTextColor(), theme.getLinkColor(),
				theme.getSidebarFillColor(), theme.getSidebarBorderColor());
		twitter.updateProfileBanner(theme.getHeaderFile());
		twitter.updateProfileBackgroundImage(theme.getBackgroundImage(),
				theme.isTileBackgroundImage());

	}
}
